<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        var x=10;
        var y='10';
        console.log(x>y);//将返还布尔值true
        console.log(x==y);//==只比较数值本身是否相同
        console.log(x===y);//===严格比较：数值本身是否相同以及数据类型是否相同
        console.log(x!=y);
        console.log(x!==y);
        
        
    </script>
</body>
</html>